I have to show data from database with multiline textbox.
How can i set height auto in this multiline textbox?
My code is here,
<asp:TextBox ID="txtNaiyo" runat="server" TextMode="MultiLine" Rows="5" Width="100%" style="height:auto;" Value='<%# Eval("Naiyo") %>'/>
Thanks in advance.
Sumit Kesarwani
03-Sep-2013I've made something quite easy. First I put the TextArea into a DIV. Second, I've called on Ready Function to this script
Simple. Is the Max Height of the div once is render, divided the height of one TextArea of one row.
Hope this will solve your problem.